package com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.service.impl;

import com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.entity.MarshallStabilityNewProcessResEntity;
import com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.mapper.MarshallStabilityNewProcessResMapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;


import com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.service.MarshallStabilityNewProcessResService;


@Service("marshallStabilityNewProcessResService")
public class MarshallStabilityNewProcessResServiceImpl extends ServiceImpl<MarshallStabilityNewProcessResMapper, MarshallStabilityNewProcessResEntity> implements MarshallStabilityNewProcessResService {

    @Autowired
    private MarshallStabilityNewProcessResMapper marshallStabilityNewProcessResMapper;

//    @Autowired
//    private BaseServiceComponent baseServiceComponent;

    /**
     * 列表
     */
    @Override
    public IPage<MarshallStabilityNewProcessResEntity> queryPage(Map<String, Object> params) {
//        IPage<MarshallStabilityNewProcessResEntity> page = baseServiceComponent.getPage(params, MarshallStabilityNewProcessResEntity.class);
        return marshallStabilityNewProcessResMapper.selectPage(null ,new QueryWrapper<MarshallStabilityNewProcessResEntity>());
    }

    /**
     * 信息
     * @return MarshallStabilityNewProcessResEntity
     */
    @Override
    public MarshallStabilityNewProcessResEntity getInfo(String id){
        return getById(id);
    }

    /**
     * 保存
     */
    @Override
    public void saveData(MarshallStabilityNewProcessResEntity marshallStabilityNewProcessRes){
        save(marshallStabilityNewProcessRes);
    }

    /**
     * 修改
     */
    @Override
    public void updateData(MarshallStabilityNewProcessResEntity marshallStabilityNewProcessRes){
        updateById(marshallStabilityNewProcessRes);
    }

    /**
     * 删除单条数据
     * @param id
     */
    @Override
    public void deleteOneData(String id){
        removeById(id);
    }

    /**
     * 删除
     */
    @Override
    public void deleteData(List<String> ids){
        removeByIds(ids);
    }
}
